package com.hup.sidebar.framework.view;

import android.view.View;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import butterknife.ButterKnife;

/**
 * @author hugan
 * @date 2022/4/7
 */
public abstract class RecyclerViewHolder<E> extends RecyclerView.ViewHolder {

    public RecyclerViewHolder(@NonNull View view) {
        super(view);
        ButterKnife.bind(this, view);
        onBindView(view);
    }

    /**
     * 绑定监听事件等
     */
    public abstract void onBindView(View view);

    public abstract void bindData(int position, E item);
}
